//
//  MovieModel.m
//  MtimeMovie
//
//  Created by lllyyy on 15/7/20.
//  Copyright (c) 2015年 lllyyy. All rights reserved.
//

#import "MovieModel.h"

@implementation MovieModel

- (NSString *)description{
    
    NSString *str = [NSString stringWithFormat:@"year=%@,title=%@",_year,_title];
    return str;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"rating"]) {
        _average = [[value objectForKey:@"average"]floatValue];
    }
}

@end
